package io;
import java.io.*;
public class BfReadTest {
    public static void main(String[] args) {
//        try {
//            BufferedReader br=new BufferedReader(new FileReader("E:\\WORKSPACES\\eclipse2\\java68_advance\\advance\\src\\io\\FileCreate.java"));
//            String str=null;
//            while((str=br.readLine())!=null){
//                System.out.println(str);
//            }
//            br.close();
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
        try {
            BufferedWriter bw=new BufferedWriter(new FileWriter("E:\\Temp\\java68\\2.txt"));
            bw.write("时间要好好管理");
            bw.newLine();//换行
            bw.write("nihao");
            bw.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
